/**  
* @Title: ActionEnum.java 
* @Description:
* @Copyright: Copyright (c) 2018
* @Company:http://www.sinocon.cn
* @author Administrator  
* @date 2018年4月19日  
* @version 1.0  
*/
package com.sansui.admin.common.constant;

/**
 * @Title: ActionEnum
 * @Description:
 * @author:Administrator
 * @date 2018年4月19日
 */
public enum ActionEnum {
	ADD("add", 1), DELETE("delete", 2), UPDATE("update", 3), LIST("list", 4), SPRIMARY("selectByPrimaryKey", 5);
	
	private String name;
	private Integer index;

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the index
	 */
	public Integer getIndex() {
		return index;
	}

	/**
	 * @param index
	 *            the index to set
	 */
	public void setIndex(Integer index) {
		this.index = index;
	}

	/**
	 * @Title:
	 * @Description:
	 * @param name
	 * @param index
	 */
	private ActionEnum(String name, Integer index) {
		this.name = name;
		this.index = index;
	}

}
